<script setup>
import { defineProps, reactive } from "vue";
defineProps({
  // 名称
  title: {
    type: String,
    required: true,
  },
});
const state = reactive({
  styles: {
    borderColor: "#1c4880",
    borderWidth: "2px",
    verticalAlign: "text-bottom",
    backgroundColor: "#1c4880",
    marginBottom: "0px",
  },
});
defineExpose({
  state,
});
</script>
<template>
  <div class="divider_class">
    <div>
      <van-divider vertical :style="[state.styles]" />
      <span class="sp_title">{{ title }}</span>
    </div>
    <div class="right_html">
      <slot name="handle"></slot>
    </div>
  </div>
</template>
<style lang="scss" scoped>
.divider_class {
  display: flex;
  align-items: center;
  height: 35px;
  width: 100%;
  border-bottom: 1px solid #e6e6ee;
  justify-content: space-between;
  flex-wrap: nowrap;
  .sp_title {
    font-size: 15px;
    font-weight: bold;
  }
  .right_html {
    margin-right: 20px;
  }
}
</style>
